package com.kayt.cyberBar.cuser.business.entity.po;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonIgnore;


/**
 * The persistent class for the b_cyber_base_task_pic database table.
 * 
 */
@Entity
@Table(name="b_cyber_base_task_pic")
@NamedQuery(name="BCyberBaseTaskPic.findAll", query="SELECT b FROM BCyberBaseTaskPic b")
public class BCyberBaseTaskPic implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String createTime;
	private String picUrl;
	private String reportCode;
	private String sequnce;
	private String updateTime;
	
	private BCyberBaseTaskReport report;

	public BCyberBaseTaskPic() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	@Column(name="PIC_URL")
	public String getPicUrl() {
		return this.picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}


	@Column(name="REPORT_CODE")
	public String getReportCode() {
		return this.reportCode;
	}

	public void setReportCode(String reportCode) {
		this.reportCode = reportCode;
	}


	public String getSequnce() {
		return this.sequnce;
	}

	public void setSequnce(String sequnce) {
		this.sequnce = sequnce;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@ManyToOne(targetEntity = BCyberBaseTaskReport.class, fetch = FetchType.LAZY)
	@JoinColumn(name="REPORT_CODE", referencedColumnName="CODE", nullable = false, insertable=false, updatable=false)
	@JsonIgnore
	public BCyberBaseTaskReport getReport() {
		return report;
	}


	public void setReport(BCyberBaseTaskReport report) {
		this.report = report;
	}
	
	

}